export default (prevState = [],action) =>{
  let { type, payload } = action
  switch(type){
    case "SetRoleList":
      var newList = [...prevState,...payload]
      return newList
    default:
      return prevState
  }
}